/* var a = 'hOw aRE yOU';
var b = a.split(' ');
var c, e, d;
for (var i = 0; i < b.length; i++) {
	
	      if(m==0){
			c = (b[i][m].toUpperCase());

		} else if (m == 1) {
			e = (b[i][m].toLowerCase());

		} else {
			d = (b[i][m].toLowerCase());

		}
		
	}
console.log(c+e+d);
} */
/* var a='hOw aRE yOU';
var b = a.split(' ');
var e=[];
for (var i = 0; i < b.length; i++) {
	var c=(b[i].slice(0,1).toUpperCase());
	var d=(b[i].slice(1).toLowerCase());
    b[i]=c+d;
	}
	var e=b.join(' ')
	console.log(e) */
var a='hOw aRE yOU';
var b=a.toLowerCase().split(' ');
for(var i=0;i<b.length;i++){
	var c=b[i].slice(0,1).toUpperCase()//首字母
	var d=b[i].slice(1)
	 b[i]=c+d
}
var e=b.join(' ');
console.log(e)
 



